package top.infopub.enums.cap;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public enum BankEnum {
    BANK_TYPE0("0", "国有银行","0","中国工商银行"),
    BANK_TYPE1("0", "国有银行","1","中国农业银行"),
    BANK_TYPE2("0", "国有银行","2","中国银行"),
    BANK_TYPE3("0", "国有银行","3","中国建设银行"),
    BANK_TYPE4("0", "国有银行","4","交通银行"),
    BANK_TYPE5("0", "国有银行","5","中国邮政储蓄银行"),
    BANK_TYPE6("1", "地方主流银行","6","招商银行"),
    BANK_TYPE7("1", "地方主流银行","7","浦发银行"),
    BANK_TYPE8("1", "地方主流银行","8","光大银行"),
    BANK_TYPE9("1", "地方主流银行","9","广发银行"),
    BANK_TYPE10("1", "地方主流银行","10","平安银行"),
    BANK_TYPE11("1", "地方主流银行","11","中信银行"),
    BANK_TYPE12("1", "地方主流银行","12","华夏银行"),
    BANK_TYPE13("1", "地方主流银行","13","渤海银行"),
    BANK_TYPE14("1", "地方主流银行","14","恒丰银行"),
    BANK_TYPE15("1", "地方主流银行","15","兴业银行"),
    BANK_TYPE16("1", "地方主流银行","16","浙商银行"),
    BANK_TYPE17("1", "地方主流银行","17","中国民生银行"),

    BANK_TYPE18("2", "政策性银行","18","中国国家开发银行"),
    BANK_TYPE19("2", "政策性银行","19","中国农业发展银行"),
    BANK_TYPE20("2", "政策性银行","20","中国进出口银行");

    private String code;

    private String name;

    private String type;

    private String typeName;

    BankEnum(String code, String name,String type,String typeName) {
        this.code = code;
        this.name = name;
        this.type = type;
        this.typeName = typeName;
    }

    public static List<Map<String, String>> asList() {
        List<Map<String, String>> list = new ArrayList<>();
        Map<String, String> map;
        for (BankEnum prs : BankEnum.values()) {
            map = new HashMap<>();
            map.put("code", prs.getCode());
            map.put("name", prs.getName());
            map.put("type", prs.getType());
            map.put("typeName", prs.getTypeName());
            list.add(map);
        }
        return list;
    }
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }
}
